package com.atguigu.cloud.sevice;

import com.atguigu.cloud.entities.Admin;
import com.atguigu.cloud.tool.load.page.PaginationInterface;

import java.util.List;

/**
 * @author zzh
 * @Auter zzh
 * @Date 2024/11/13
 */
public interface AdminService extends PaginationInterface<Admin> {
    //对管理员操作
    int add(Admin admin);
    int delete(Integer id);
    int update(Admin admin);
    Admin getById(Integer id);
    List<Admin> getAll();

    boolean onlyName(String name);

    //根据名字返回id
    Integer getIdByName(String name);
}
